// ****************************************************************
// Copyright 2012, Stephan Burguchev
// e-mail: me@sburg.net
// ****************************************************************
// *
using System;
using Updater.Updates;

namespace Updater.Common
{
    public class ProgressInfo
    {
        public ProgressInfo(double percentage, string message, IUpdate update)
        {
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }

            this.Percentage = percentage;
            this.Message = message;
            this.Update = update;
        }

        public string Message { get; protected set; }

        public double Percentage { get; protected set; }
        public IUpdate Update { get; private set; }
    }
}
